//
// Created by mouse on 2019/12/22.
//

#ifndef NODEMCU_UTILS_H
#define NODEMCU_UTILS_H

#include <Arduino.h>
#include <StringArray.h>
#include <assert.h>

#define enum_to_string(x) #x

namespace TypeConversionUtils {

    String uint64_to_string(uint64_t number, byte base = 16);

    uint64_t string_to_uint64(const String &string, byte base = 16);
}

namespace StringUtils {

    LinkedList<String> split(String s, char seprate);

    LinkedList<String> split(String s, String seprate);
}

#endif //NODEMCU_UTILS_H
